package ast.expresiones;

import alex.Token;

public class NodoExpresionUnaria extends NodoExpresion {
	protected NodoExpresion expresion;
	protected Token operador;

	public NodoExpresionUnaria(Token token, NodoExpresion exp) {
		operador = token;
		expresion = exp;
	}

	@Override
	public void imprimirNodo() {
		System.out.printf("	NodoExpresionUnaria \n");
		System.out.printf("		Operador: %s \n", operador.getLexema());
		System.out.printf("		LadoDerecho: \n");
		expresion.imprimirNodo();
		System.out.printf("	Fin expresion unaria \n");

	}
}
